import { defineStore } from 'pinia'
import { store } from '../index'

export const useSoftPhoneStore = defineStore('softPhone', {
  state: () => {
    return {
      autoAnswer: false
    }
  },
  getters: {
    getAutoAnswer() {
      return this.autoAnswer
    }
  },
  actions: {
    async setAutoAnswer(val) {
      this.autoAnswer = val
    }
  }
})
export const useSoftPhoneStoreWithOut = () => {
  return useSoftPhoneStore(store)
}
